package com.lzh.tiktok.user.vo;

import com.lzh.common.constant.TiktokConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lizhihang
 * @create 2023-01-17 12:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResponseVo {
    /**
     * 状态码，0是成功 其他值是失败
     */
    private Integer status_code;
    /**
     * 状态描述
     */
    private String status_msg;

    public static CommonResponseVo success() {
        return new CommonResponseVo(0, "成功");
    }

    public static CommonResponseVo fail() {
        return new CommonResponseVo(-1, "失败");
    }
}
